/*
 * @Author: Automator
 * @Date: 2018-05-22 18:19:08
 * @description: 
*/

 const  api = {

     /*
     * 方法描述:添加人物 ,请求方式:POST ,参数:personDto ,返回值:JsonResult<Long> ,否可用： ok
     * @param personDto  personDto  Required:[true]  Type:[]  Location:[body]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'savePerson': {url: '/cms/v2/api/person', method: 'post'},

     /*
     * 方法描述:修改人物基本信息 ,请求方式:PUT ,参数:personDto ,返回值:JsonResult ,否可用：ok
     * @param personDto  personDto  Required:[true]  Type:[]  Location:[body]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'updatePerson': {url: '/cms/v2/api/person', method: 'put'},

     /*
     * 方法描述:根据Id获取人物信息 ,请求方式:GET ,参数:personId ,返回值:JsonResult<PersonVo> ,否可用： ok
     * @param personId  personId  Required:[true]  Type:[integer]  Location:[path]
     */
    'getPerson': {url: '/cms/v2/api/person/{personId}', method: 'get'},

     /*
     * 方法描述:获取人物关联关系 ,请求方式:GET ,参数:personSearchDto ,返回值:JsonResult<PageResult<PersonRelationVo>> ,否可用：ok
     * @param personId  personId  Required:[true]  Type:[integer]  Location:[path]
     * @param pageIndex    Required:[false]  Type:[integer]  Location:[query]
     * @param pageSize    Required:[false]  Type:[integer]  Location:[query]
     */
    'getPersonRelationByPersonId': {url: '/cms/v2/api/persons/{personId}/relation', method: 'get'},

     /*
     * 方法描述:根据人物名称查询相关人物信息（投资人....） ,请求方式:GET ,参数:personCommonDto ,返回值:JsonResult<PageResult<InvestorPersonVo>> ,否可用：ok
     * @param pageParam.pageIndex    Required:[false]  Type:[integer]  Location:[query]
     * @param pageParam.pageSize    Required:[false]  Type:[integer]  Location:[query]
     * @param selectValue  文本框值  Required:[false]  Type:[string]  Location:[query]
     * @param selectType  搜索条件  Required:[false]  Type:[string]  Location:[query]
     * @param companyId  企业id(若无此参数传入-1)  Required:[false]  Type:[integer]  Location:[query]
     * @param attr  标识：字典companyIdentity(若无此参数传入-1)  Required:[false]  Type:[integer]  Location:[query]
     */
    'getInvestorInvestor': {url: '/cms/v2/api/persons/investor', method: 'get'},

     /*
     * 方法描述:获取列表上方的统计 ,请求方式:GET ,返回值:JsonResult<PersonCountInfoVo> ,否可用：ok
     */
    'getPersonCountInfo': {url: '/cms/v2/api/countInfo', method: 'get'},

     /*
     * 方法描述:校验删除人物前检查是否有关联数据，返回对象所有参数值为0时才能调用删除接口 ,请求方式:GET ,参数:personsId ,返回值:JsonResult<DeletePersonCheckVo> ,否可用：ok
     * @param personsId  personsId  Required:[true]  Type:[integer]  Location:[path]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'getDeletePersonCheck': {url: '/cms/v2/api/persons/check/{personsId}', method: 'get'},

     /*
     * 方法描述:根据人物id删除人物信息（真删除，请友情提示。删除前调用校验接口） ,请求方式:DELETE ,参数:id ,返回值:JsonResult ,否可用：ok
     * @param id  id  Required:[true]  Type:[integer]  Location:[path]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'deletePersonById': {url: '/cms/v2/api/persons/{id}', method: 'delete'},

     /*
     * 方法描述:获取人物列表 ,请求方式:GET ,参数:personSearchDto ,返回值:JsonResult<PageResult<PersonQueryVO>> ,否可用：ok
     * @param pageParam.pageIndex    Required:[false]  Type:[integer]  Location:[query]
     * @param pageParam.pageSize    Required:[false]  Type:[integer]  Location:[query]
     * @param infoStatus  信息状态：1111正常数据；0100:保密数据；1010:壳主体；0010:更新／质检；0000:待完善  Required:[false]  Type:[array]  Location:[query]
     * @param qualityStatus  质检状态：1-未质检、2-质检通过、3-质检未通过  Required:[false]  Type:[array]  Location:[query]
     * @param id  人物id  Required:[false]  Type:[integer]  Location:[query]
     * @param selectType  查询下拉框类型  Required:[false]  Type:[string]  Location:[query]
     * @param selectValue  查询文本框值  Required:[false]  Type:[string]  Location:[query]
     * @param orderBy  排序字段  Required:[false]  Type:[string]  Location:[query]
     * @param sort  排序顺序  Required:[false]  Type:[string]  Location:[query]
     */
    'personPage': {url: '/cms/v2/api/persons', method: 'get'}

};

 export default api;
